package com.matt.controller.pad.care;

import com.matt.domain.care.HLMoreRecord;
import com.matt.service.care.HLMoreRecordService;
import com.matt.service.care.po.HLMoreRecordPO;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/pad/record/more")
@Slf4j
@Api(tags = "护理记录 - 更多")
public class PadCareMoreController extends CareBaseController<HLMoreRecord, HLMoreRecordService, HLMoreRecordPO> {

    @Autowired
    public void setBaseService(HLMoreRecordService service){
        super.setBaseService(service);
    }

//    @ApiOperation(value = "增加一条记录（使用childId）或多个记录（使用childIds）, 响应结果都是数组")
//    @PostMapping(produces = "application/json;charset=UTF-8")
//    public StatusResponse add(HttpServletRequest req, HttpServletResponse resp,
//                              @RequestHeader(TICKET) String ticket, @RequestBody HLMoreRecordPO param){
//
//        WxUser loginUser = (WxUser) req.getSession().getAttribute("loginUser");
//        BindedBabyVO defaultBaby = loginUser.getDefaultBaby();
//
//        param.setChildId(defaultBaby.getId());
//        param.setChildIds(null);
//
//        HLMoreRecord ret = baseService.add(loginUser.getParentId(), defaultBaby, param);
//
//        return StatusResponse.success(ret);
//
//    }

}
